package org.grayrabbit.commons.util.logging.slf4j;

import org.grayrabbit.commons.util.logging.Logger;

public class Slf4jLogger implements Logger {

	private final transient org.slf4j.Logger log;
	
	public Slf4jLogger(org.slf4j.Logger log){
		this.log = log;
	}
	
	public void trace(String format, Object... args) {
		log.trace(format, args);
	}

	public void trace(String format, Throwable ex, Object... args) {
		log.trace(format, ex,args);
	}

	public boolean isTraceEnabled() {
		return log.isTraceEnabled();
	}

	public void debug(String format, Object... args) {
		log.debug(format,args);
	}

	public void debug(String format, Throwable ex, Object... args) {
		log.debug(format,ex,args);
	}

	public boolean isDebugEnabled() {
		return log.isDebugEnabled();
	}

	public void info(String format, Object... args) {
		log.info(format,args);
	}

	public void info(String format, Throwable ex, Object... args) {
		log.info(format,ex,args);

	}

	public boolean isInfoEnabled() {
		return log.isInfoEnabled();
	}

	public void warn(String format, Object... args) {
		log.warn(format,args);
	}

	public void warn(String format, Throwable ex, Object... args) {
		log.warn(format, ex,args);
	}

	public boolean isWarnEnabled() {
		return log.isWarnEnabled();
	}

	public void error(String format, Object... args) {
		log.error(format,args);
	}

	public void error(String format, Throwable ex, Object... args) {
		log.error(format,ex,args);

	}

	public boolean isErrorEnabled() {
		return log.isErrorEnabled();
	}

	public void fatal(String format, Object... args) {
		log.error(format, args);
	}

	public void fatal(String format, Throwable ex, Object... args) {
		log.error(format, ex,args);

	}

	public boolean isFatalEnabled() {
		return false;
	}

}
